<?php
defined('_JEXEC') or die( 'Restricted access' );
jimport( 'joomla.application.component.view');
class LogoViewDetail extends JView
{
	function display($tpl = null)
	{
		global $mainframe;

		if($this->getLayout() == 'default') {
			$this->_display($tpl);
			return;
		}
		parent::display($tpl);
	}
	function _display($tpl)
	{
		global $mainframe, $option;
		$db		=& JFactory::getDBO();
		$uri 	=& JFactory::getURI();
		$model	=& $this->getModel();

		$lists = array();
		$detail	=& $this->get('data');		
		
		$position = array(	'0' => array('value' => '', 'text' => '--Chọn--'),
							'1'	=> array('value' => 'Left', 'text' => 'Trái'),	
							'2' => array('value' => 'Right', 'text' => 'Phải'),
							'3' => array('value' => 'bottom', 'text' => 'Ngang - Dưới') 
						  );
		$lists['position'] = JHTML::_('select.genericList',$position,'position','class="inputbox" '.'','value','text',$detail->position);
		// build the html select list
		$lists['published'] 		= JHTML::_('select.booleanlist',  'published', 'class="inputbox"', $detail->published );

		$this->assignRef('lists',		$lists);
		$this->assignRef('detail',		$detail);

		parent::display($tpl);
	}
}